/**
 * @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm 
 * @Version 16-12-2014
 */

package modelLayer;

public abstract class BusinessPartner {
	
	private int partnerId;
	private String businessName;
	private String phoneNo;
	
	/**
	 * Constructor 1: For creation in ctrClass
	 * 
	 * @param String businessName
	 * @param String phoneNo
	 */
	public BusinessPartner(String businessName, String phoneNo){
		this.partnerId = 0;
		this.businessName = businessName;
		this.phoneNo = phoneNo;
	}
	
	/**
	 * Constructor 2: For creation in dbClass
	 */
	public BusinessPartner() {
		partnerId = 0;
		businessName = "";
		phoneNo = "";
	}
	
	/**
	 * Constructor 3: For creation as association
	 * 
	 * @param int partnerId
	 */
	public BusinessPartner(int partnerId) {
		this.partnerId = partnerId;
		businessName = "";
		phoneNo = "";
	}
	/**
	 * Get partner id
	 * @return int partnerId
	 */
	public int getPartnerId() {
		return partnerId;
	}
	/**
	 * Set partner id
	 * @param int partnerId
	 */
	public void setPartnerId(int partnerId) {
		this.partnerId = partnerId;
	}
	/**
	 * Get business name.
	 * @return String businessName
	 */
	public String getBusinessName() {
		return businessName;
	}
	/**
	 * Set business name
	 * @param String businessName
	 */
	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}
	/**
	 * Get phone no
	 * @return String phone no
	 */
	public String getPhoneNo() {
		return phoneNo;
	}
	/**
	 * Set phone no
	 * @param String phoneNo
	 */
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	
}
